package com.boilermaker.demo.mapper;

import com.boilermaker.demo.model.Book;
import com.boilermaker.demo.model.PageRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookMapper {

    void insertBook(Book book);

    Integer countAvailableBook();

    List<Book> selectBookListByPage(PageRequest pageRequest);

    Book selectBookById(Integer id);

    Integer updateBook(Book book);

    Integer deleteBooks(List<Integer> ids);
}
